package com.handa.admin.userservice.mapper;


import com.handa.admin.userservice.entity.DO.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface sysUserMapper {

    List<SysUserEntity> getAllUsers();

    @Select("select * from users where user_id = #{id}")
    SysUserEntity getUserById(Long id);

    void deleteUserById(Integer userId);

    void updateUser(SysUserEntity user);

    void updateUserPassword(SysUserEntity user);

    void addUser(SysUserEntity user);

    SysUserEntity getUserByUsername(String username);
}
